package service

import (
	"seat-service/model"
	"seat-service/model/dto"
)

type User interface {
	GetById(id uint) (user model.User, err error)
	Create(user *model.User) (err error)
	Updates(user *model.User) (err error)
	Deletes(ids []int) (err error)
	Login(user *model.User) (uu model.User, err error)
	GetAll(param *dto.PageParam) ([]model.User, error)
	GetAllWithLike(param *dto.ParamUserAdmin) (user []model.User, err error)
	GetAllLen() (l int64)
}
